package java210113.homework;

public class LowerAndUpper {
	
	public static String toLowerCase(String str) {
		char[] array = str.toCharArray();
		for (int i = 0; i < array.length; i++) {
			if (array[i] < 'Z' && array[i] > 'A') {
				array[i] += 32 ;
			}
		}
		return new String(array);
	}
	
	public static String toUpperCase(String str) {
		char[] array = str.toCharArray();
		for (int i = 0; i < array.length; i++) {
			if (array[i] < 'z' && array[i] > 'a') {
				array[i] -= 32 ;
			}
		}
		return new String(array);
	}
}
